<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <title>{{$shudan->biaoti}} - 书单 - 夜读书</title>
    <meta name="viewport" content="width=device-width, height=device-height, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
    <meta name="format-detection" content="telephone=no">
    <meta name="author" content="夜读书">
    <meta name="description" content="{{$shudan->biaoti}}">
    <meta name="keywords" content="{{$shudan->biaoti}},书单">
    <link rel="stylesheet" href="{{ asset('/bootstrap-3.3.5-dist/css/bootstrap.min.css') }}">
    <link rel="stylesheet" href="{{ asset('/style/css/mobile.css') }}">    
    <script src="{{ asset('/scripts/jquery/jquery-1.11.3.min.js') }}"></script>
    <script src="{{ asset('/bootstrap-3.3.5-dist/js/bootstrap.min.js') }}"></script>
</head>
<body>
@include('mobile.nav')
<div id="shudaninfo">

    <div class="sdbiaoti">
            <a class="pull-left" href="{{url('mobile/uhome/'. $shudan->users->uid)}}" title="{{ $shudan->users->user_name }}">
            @if($shudan->users->avatar_file_min!="")
                <img src="http://www.yedushu.com/{{ $shudan->users->avatar_file_min }}">
            @else
                <img src="http://www.yedushu.com/usersface/default/avatar-min.png">
            @endif
            </a>
            <h1>{{$shudan->biaoti}}</h1>
            <span class="hyname"><a href="{{url('mobile/uhome/'. $shudan->users->uid)}}">{{$shudan->users->user_name}}</a></span><span class="hytime"> {{date('Y-m-d',$shudan->add_time)}}</span><span class="click">有{{$shudan->click_count}}人感兴趣</span>
    </div>
    <div class="sdjieshao">{!!$shudan->jieshao!!}</div>
    @foreach($books as $book)
    @if($book != null)    
    <div class="mods shudaninfo">
        <a href="{{asset('mobile/info')}}/{{$book->book_id}}" class="biaoti">
        <dl>
            <dt>
                <img src="{{asset($book->bimg)}}"></img>
            </dt>
            <dd>
                {{$book->book_name}}
            </dd>
            <dd>
                <span class="zuozhe">{{$book->zuozhe}}</span>
            </dd>
            <dd>
                <span class="zuozhe">{{$book->chubanshe}}</span>
            </dd>
        </dl>
        </a>
    </div>
    @else
        @if(Session::has('name'))
        <div class="mods shudaninfo">
            <dl>
            收入书单的图书已不存在于夜读书网站，<a href="{{asset('shudaninfo/edit')}}/{{$shudan->id}}">编辑书单就可以清除此条信息！</a>
            </dl>
        </div>
        @endif
    @endif
    @endforeach
        
</div> 

@include('mobile.footer')
</body>
</html>